﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Design.ascx.cs" Inherits="Jzy.Web.WebSite.Controls.Design" %>

<script language="javascript" type="text/javascript">
    function switchMenu(obj)
    {
        obj.className = "con_title_cn title_sel";
        if (obj.id == "tab_show_design")
        {
            document.getElementById("tab_show_case").className = "con_title_cn title_nor";
            document.getElementById("design").style.display = "block";
            document.getElementById("case").style.display = "none";
            document.getElementById("pic_more").href = "<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/PictureList.aspx?MenuCode=4";
        }
        else
        {
            document.getElementById("tab_show_design").className = "con_title_cn title_nor";
            document.getElementById("design").style.display = "none";
            document.getElementById("case").style.display = "block";
            document.getElementById("pic_more").href = "<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/PictureList.aspx?MenuCode=3";
        }
    }
</script>

<div class="content_nav_about content_nav_c">
    <div class="content_nav_about_n content_nav_c_n">
        <div class="con_title_left con_title_case">
            <div class="con_title_cn title_sel" id="tab_show_case" onmouseover="switchMenu(this)">
                <a href="<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/PictureList.aspx?MenuCode=3">成功案例</a></div>
            <div class="con_title_cn title_nor" id="tab_show_design" onmouseover="switchMenu(this)">
                <a href="<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/PictureList.aspx?MenuCode=4">设计展示</a></div>
            <div class="con_title_button">
                <a id="pic_more" href="<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/PictureList.aspx?MenuCode=3">
                    <img src="<%=Jzy.Core.Common.Basic.GlobalVar.WebAppPath %>website/images/more.gif" width="58" height="17" /></a></div>
        </div>
        <div class="con_con_left" id="case">
            <asp:Repeater ID="rpt1" runat="server" EnableViewState="false">
                <ItemTemplate>
                    <div class="con_con_left_citem">
                        <div class="c_img">
                            <a id='lnk_<%#Eval("ID") %>' href='<%#GetUrl(Eval("Source"),Eval("BigImageAbsPath")) %>' target="_blank">
                                <script type="text/javascript">
                                    loadImage('<%#Eval("SmallImageAbsPath")%>', 'lnk_<%#Eval("ID") %>', 142, 142, 150);
                                </script>

                            </a>
                        </div>
                        <div class="c_info">
                            <a href='<%#Eval("BigImageAbsPath") %>' target="_blank"><%#Eval("Name") %></a></div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="con_con_left" id="design" style="display: none">
            <asp:Repeater ID="rpt2" runat="server" EnableViewState="false">
                <ItemTemplate>
                    <div class="con_con_left_citem">
                        <div class="c_img">
                            <a id='lnk_<%#Eval("ID") %>' href='<%#GetUrl(Eval("Source"),Eval("BigImageAbsPath")) %>' target="_blank">
                                <script type="text/javascript">
                                    loadImage('<%#Eval("SmallImageAbsPath") %>', 'lnk_<%#Eval("ID") %>', 142, 142, 150);
                               </script></a></div>
                        <div class="c_info">
                             <a href='<%#Eval("BigImageAbsPath") %>' target="_blank"><%#Eval("Name") %></a></div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</div>
